﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace ManyToManyEntityFramework.Models
{
    public class HomeIndexViewModel
    {
        public int CourseId { get; set; }
        [Display(Name = "Course Name")] //What LabelFor will show on the view
        [Required] //Makes this property NOT NULL
        public string Name { get; set; }
        [Display(Name = "Number of Credits")]
        public int NumCredits { get; set; }
        public List<StudentViewModel> Students { get; set; }
    }
}